package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.PublicmContart;
import com.runen.wnhz.runen.presenter.model.PublicmModel;
import com.runen.wnhz.runen.service.PublicmApi;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2018/6/1 0001.
 */

@Module
public class PublicmModule {
    public PublicmContart.View view;

    public PublicmModule(PublicmContart.DetailsView detailsView) {
        this.detailsView = detailsView;
    }

    public PublicmContart.DetailsView detailsView;
    public PublicmModule(PublicmContart.View view) {
        this.view = view;
    }
    @Provides
    public PublicmContart.View provideView() {
        return view;
    }
    @Provides
    public PublicmContart.DetailsView provideDetailsView() {
        return detailsView;
    }


    @Provides
    public PublicmModel providePublicmModel(PublicmApi publicmApi) {
        return new PublicmModel(publicmApi);
    }
}
